package shiqi.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import shiqi.pojo.Order;
import shiqi.service.OrderService;

@RestController

@RequestMapping("order")
public class OrderController {
    @Autowired
    private OrderService orderService;
    @RequestMapping("add")
    @ResponseBody
    public String addOrder(Integer id) {

        orderService.updateOrder(id);
        return "success";
    }
}
